<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="济南本地同城信息平台，提供招聘求职、房屋租售、二手交易、寻人寻物、吃喝玩乐等生活服务信息，快速发布和查找您需要的本地信息">
  <meta name="keywords" content="济南便民同城">
  <meta name="robots" content="index, follow">
  <meta name="author" content="济南便民港">
  <link rel="canonical" href="https://pc.jngkxx.top">

  <!-- 社交媒体Meta标签 -->
  <meta property="og:title" content="济南便民港 - 本地生活服务平台">
  <meta property="og:description" content="提供全面的本地生活服务信息，包括招聘、租房、二手交易等">
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://pc.jngkxx.top">
  <meta property="og:image"
    content="https://file.jngkxx.top/%E6%B3%89%E5%9F%8E%E7%94%9F%E6%B4%BB%E6%B4%BE%EF%BC%88%E6%96%B0%EF%BC%89/%E7%B3%BB%E7%BB%9F%E6%96%87%E4%BB%B6/logo/logo.png">

  <!-- Twitter卡片 -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="济南便民港 - 本地生活服务平台">
  <meta name="twitter:description" content="提供全面的本地生活服务信息，包括招聘、租房、二手交易等">
  <meta name="twitter:image"
    content="https://file.jngkxx.top/%E6%B3%89%E5%9F%8E%E7%94%9F%E6%B4%BB%E6%B4%BE%EF%BC%88%E6%96%B0%EF%BC%89/%E7%B3%BB%E7%BB%9F%E6%96%87%E4%BB%B6/logo/logo.png">

  <link href="css/detail.css" rel="stylesheet" type="text/css" media="all" />
  <!-- 网站图标 -->
  <link rel="icon" href="/favicon.ico" type="image/x-icon">
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">

  <script src="js/jquery-1.11.0.min.js"></script>
  <!-- 引入 Simple Paging Plugin -->
  <script src="js/jquery.simplePagination.js"></script>


  <script>
    var _hmt = _hmt || [];
    (function () {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?3870faa0024f9253fdce6fd555ff25d7";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>

  <!-- 结构化数据 -->
  <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "name": "济南便民港",
      "url": "https://pc.jngkxx.top",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://pc.jngkxx.top/search?q={济南便民港}",
        "query-input": "required name=济南便民港"
      }
    }
    </script>

  <title>济南便民港 - 帖子详情</title>
</head>

<body>
  <div class="container">
    <div class="post-header">
      <h1>寻找周末一起打篮球的伙伴</h1>
      <div class="post-tag">运动</div>
    </div>

    <div class="post-card">
      <div class="post-meta">
        <div class="author-info">
          <div class="author-avatar">张</div>
          <div class="author-details">
            <h3>张三</h3>
            <div class="post-date"><i class="far fa-clock"></i> 发布于：2023年5月15日 14:30</div>
          </div>
        </div>
        <div class="post-views">
          <i class="far fa-eye"></i> 256次浏览
        </div>
      </div>

      <div class="post-content">
        <p>大家好！我最近搬到阳光花园社区，想找一些周末可以一起打篮球的朋友。我们小区有一个很棒的篮球场（如下图），设施很新，晚上还有灯光。</p>

        <img
          src="https://images.unsplash.com/photo-1546519638-68e109498ffc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80"
          alt="社区篮球场" class="post-image">

        <p>我平时周六下午和周日上午有空，水平中等（能打半场，全场跑不动），主要是为了锻炼身体和结交朋友。如果有兴趣的朋友可以联系我，我们可以约时间一起打球。</p>

        <div class="image-gallery">
          <img
            src="https://images.unsplash.com/photo-1519861531473-9200262188bf?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80"
            alt="篮球1" class="gallery-image">
          <img
            src="https://images.unsplash.com/photo-1547347298-4074fc3086f0?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80"
            alt="篮球2" class="gallery-image">
          <img
            src="https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80"
            alt="篮球3" class="gallery-image">
        </div>

        <p>另外，如果有固定的篮球活动群也欢迎拉我进去，谢谢！</p>
      </div>

      <div class="post-actions">
        <div class="action-group">
          <a href="#" class="action-btn"><i class="far fa-thumbs-up"></i> 点赞 (24)</a>
          <a href="#" class="action-btn"><i class="far fa-comment"></i> 评论 (3)</a>
          <a href="#" class="action-btn"><i class="fas fa-share"></i> 分享</a>
        </div>
        <a href="#" class="contact-btn" id="show-contact"><i class="fas fa-envelope"></i> 联系作者</a>
      </div>
    </div>

    <div class="comments-section">
      <h2 class="section-title"><i class="far fa-comments"></i> 评论 <span class="comment-count">3</span></h2>

      <!-- 主评论 -->
      <div class="comment" id="comment-1">
        <div class="comment-avatar">李</div>
        <div class="comment-content">
          <div class="comment-meta">
            <span class="comment-author">李四</span>
            <span class="comment-date">2023年5月16日 09:15</span>
          </div>
          <div class="comment-text">
            我也住在阳光花园，周末经常去打篮球。周六下午可以一起，我一般2点左右到。我的微信是lisi123，加我详聊吧！
          </div>
          <div class="comment-actions">
            <a href="#" class="reply-btn" data-comment-id="comment-1"><i class="fas fa-reply"></i> 回复</a>
            <a href="#" class="action-btn"><i class="far fa-thumbs-up"></i> 12</a>
          </div>
        </div>
      </div>

      <!-- 回复评论 -->
      <div class="reply" id="reply-1-1">
        <div class="comment">
          <div class="comment-avatar">王</div>
          <div class="comment-content">
            <div class="comment-meta">
              <span class="comment-author">王五</span>
              <span class="comment-date">2023年5月16日 11:30</span>
            </div>
            <div class="comment-text">
              @李四 周六下午2点我也可以参加，我们有个小群，要不要拉你进来？
            </div>
            <div class="comment-actions">
              <a href="#" class="reply-btn" data-comment-id="reply-1-1"><i class="fas fa-reply"></i> 回复</a>
              <a href="#" class="action-btn"><i class="far fa-thumbs-up"></i> 5</a>
            </div>
          </div>
        </div>
      </div>

      <!-- 主评论 -->
      <div class="comment" id="comment-2">
        <div class="comment-avatar">赵</div>
        <div class="comment-content">
          <div class="comment-meta">
            <span class="comment-author">赵六</span>
            <span class="comment-date">2023年5月17日 16:45</span>
          </div>
          <div class="comment-text">
            我偶尔也会去打篮球，不过水平一般。看到有群就太好了，能拉我进去吗？我的电话是13800138000，谢谢！
          </div>
          <div class="comment-actions">
            <a href="#" class="reply-btn" data-comment-id="comment-2"><i class="fas fa-reply"></i> 回复</a>
            <a href="#" class="action-btn"><i class="far fa-thumbs-up"></i> 3</a>
          </div>
        </div>
      </div>

      <!-- 评论表单 -->
      <div class="comment-form">
        <h3 class="form-title">发表评论</h3>
        <textarea placeholder="写下你的评论...可以@其他人"></textarea>
        <button type="submit" class="submit-btn"><i class="fas fa-paper-plane"></i> 提交评论</button>
      </div>
    </div>
  </div>

  <!-- 联系方式模态框 -->
  <div class="modal" id="contact-modal">
    <div class="modal-content">
      <div class="modal-header">
        <h2><i class="fas fa-id-card"></i> 联系方式</h2>
        <button class="close-btn" id="close-contact">&times;</button>
      </div>
      <div class="contact-info">
        <p><i class="fas fa-user"></i> <strong>联系人：</strong> 张三 <button class="copy-btn">复制</button></p>
        <p><i class="fas fa-phone"></i> <strong>电话：</strong> 13812345678 <button class="copy-btn">复制</button></p>
        <p><i class="fab fa-weixin"></i> <strong>微信：</strong> zhangsan123 <button class="copy-btn">复制</button></p>
        <p><i class="fab fa-qq"></i> <strong>QQ：</strong> 123456789 <button class="copy-btn">复制</button></p>
        <p><i class="fas fa-envelope"></i> <strong>邮箱：</strong> zhangsan@example.com <button
            class="copy-btn">复制</button></p>
      </div>
      <p style="color: var(--gray-color); font-size: 0.9em;"><i class="fas fa-info-circle"></i> 请礼貌联系，谢谢！</p>
    </div>
  </div>

  <!-- 回复表单 (动态生成) -->
  <div class="comment-form reply-form" id="reply-form" style="display: none;">
    <h3 class="form-title">回复评论</h3>
    <textarea placeholder="写下你的回复..."></textarea>
    <button type="submit" class="submit-btn"><i class="fas fa-paper-plane"></i> 提交回复</button>
    <button type="button" class="submit-btn cancel-reply"
      style="background: var(--gray-color); margin-left: 10px;">取消</button>
  </div>

  <script>
    // 联系方式模态框控制
    document.getElementById('show-contact').addEventListener('click', function (e) {
      e.preventDefault();
      document.getElementById('contact-modal').style.display = 'flex';
    });

    document.getElementById('close-contact').addEventListener('click', function () {
      document.getElementById('contact-modal').style.display = 'none';
    });

    // 点击模态框外部关闭
    document.getElementById('contact-modal').addEventListener('click', function (e) {
      if (e.target === this) {
        this.style.display = 'none';
      }
    });

    // 复制按钮功能
    document.querySelectorAll('.copy-btn').forEach(btn => {
      btn.addEventListener('click', function () {
        const textToCopy = this.parentElement.textContent.replace('复制', '').trim();
        navigator.clipboard.writeText(textToCopy).then(() => {
          const originalText = this.textContent;
          this.textContent = '已复制';
          setTimeout(() => {
            this.textContent = originalText;
          }, 2000);
        });
      });
    });

    // 回复评论功能
    document.querySelectorAll('.reply-btn').forEach(btn => {
      btn.addEventListener('click', function (e) {
        e.preventDefault();
        const commentId = this.getAttribute('data-comment-id');
        const commentElement = document.getElementById(commentId);

        // 移除现有的回复表单
        const existingForm = document.querySelector('.reply-form.visible');
        if (existingForm) {
          existingForm.remove();
        }

        // 克隆回复表单
        const replyForm = document.getElementById('reply-form').cloneNode(true);
        replyForm.style.display = 'block';
        replyForm.classList.add('visible');

        // 插入到评论下方
        commentElement.parentNode.insertBefore(replyForm, commentElement.nextSibling);

        // 取消按钮事件
        replyForm.querySelector('.cancel-reply').addEventListener('click', function () {
          replyForm.remove();
        });

        // 滚动到表单
        replyForm.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
      });
    });
  </script>
</body>

</html>